<template>
	<view class="detail">
		<view class="d1">
			<text>标题：{{detail.title}}</text>
			<text>承办单位：{{detail.undertaker}}</text>
			<text>日期：{{detail.startAt}}</text>
			<text>要求：{{detail.requireText}}</text>
			<rich-text :nodes="detail.detail"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:{},
				id:0
			}
		},
		onLoad(options) {
			this.id=options.id
			this.getdetail()
		},
		methods: {
			getdetail(){
				this.api.get('/prod-api/api/volunteer-service/activity/'+this.id).then(res=>{
					this.detail=res.data.data
				})
			}
		}
	}
</script>

<style lang="scss">
.d1{
	display: flex;
	flex-direction: column;
	width: 300px;
	margin: 20px auto;
	border: 2px solid dodgerblue;
	line-height: 30px;
}
</style>
